Welcome to Dannylog. A logfile parser written especially for AWS, the Amiga Web Server. This software is freeware, though I would appreciate an email, postcard, or what-have-you. To get in contact with me; Email: dannyman@uiuc.edu WWW: http://www.uiuc.edu/ph/www/djhoward Post: Daniel Howard 7310 N Claremont Chicago, IL 60645-1808 United States *** Disclaimer *** Dannylog is a work-in-progress. Additional information is available at http://www.uiuc.edu/ph/www/djhoward/dev/ There are no guarantees implied in use of this product. The authoer, however, trusts his logfiles and historical recording to it, and has yet to see Dannylog do something really bad like frying a harddrive or exploding a computer. :) *** Theory of Operation *** There are three executables at the moment. Dannylog - Main program executable. Will read in from current directory stats/data.raw files, then it will parse an access log, and rewrite stats/data.raw files with data from the read logfile in them. After this, the access log can be deleted. As of version alpha5, Dannylog will not log any entry that returns a status other than 200, rather, it will print it to standard output, a second optional argument can be taken to indicate where this output should be written to, however. t10 - Helper application that can analyse a stats/data.raw file and extract the top 10 or other values from them, matched against an AmigaDOS wildcard pattern. t10 operates on the following files that Dannylog will place in stats/ requested.raw refereres.raw hosts.raw tTOD - Outputs total satisfied requests that Dannylog has found in it's logfiles. In the future, a limitation will be added to Dannylog to reduce hit counts to a maximum possible of 4,000,000 in any given hour period, for reasons of stability. Likely all numbers will be halved when any hour exceeds 4,000,000 satisfied requests. This is not likely to happen to any Dannylog servers in the near future though, the author estimates. :) *** Usage *** --Dannylog-- From a command-line, type; Dannylog [output-file] whereas is an access log generated by AWS, and [output-file] is where you would like to send the Dannylog error reports. For example; Dannylog aws:access.log aws:error.log --t10-- TEMPLATE: FILE/A,NUM/K/N,Pat=PATTERN/K,HTML/S Whereas is a file generated by Dannylog of the form stats/data.raw and [Pattern] is an optional AmigaDOS wildcard pattern that is matched case-insensitively against the data in question. The pattern defaults to #? if none is given, thus no matching is done and the absolute top ten of a given field are returned. NUM is another optional paramater if you want something other than the top ten returned. Another option switch has been added with alpha5. If HTML is specified on command-line, Dannylog will write output as an HTML table. Example; t10 stats/hosts.raw num 5 pattern #?uiuc#? This will tell you the top five requesting hosts from the University of Illinois ... tTOD TEMPLATE: FILE/K,HTML/S Reads stats/hours.raw and outputs information on time-of-day business of the server. Includes an AmigaDOS switch for HTML, and an optional file label just in case your relevant datafile is something other than stats/hours.raw. --s/dostats-- The file s/dostats is included with this archive. It is a script I use on my system as AWS:s/dostats to do stuff. Take a look at it to get a good idea of how things work. To see what it generates, refer to http://arh0268.urh.uiuc.edu/stats/access.html *** Important Note *** t10 REQUIRES at least 8k of stack! If you do not set this, you risk crashing, BIG TIME! Dannyman reccomends saying "stack 10000" before running t10! Dannylog expects that in the directory from which you run it that there be a directory called stats this is where Dannylog sends most output.